<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>智慧写作平台</title>
<link href="./resources/css/bootstrap.min.css" rel="stylesheet">
<link href="./resources/css/bootstrap-select.min.css" rel="stylesheet">
<link href="./resources/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="./resources/css/bootstrap-table.min.css" rel="stylesheet">
<link href="./resources/css/bootstrap-editable.css" rel="stylesheet">
<link href="./resources/css/style.css" rel="stylesheet">
</head>
<body>
	<nav class="navbar navbar-blue navbar-fixed-top" role="navigation">
		<div class="container bs-docs-container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-6">
					<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
				</button>
				<h1>智慧写作平台</h1>
			</div>
			<ul class="nav navbar-nav">
				<li class="active"><a href="/pad">课程列表</a></li>
				<li><a href="/pad/comment_template.html">评论模板</a></li>
				<!--<li><a href="/pad/vision_manage.html">视图管理</a></li>-->
			</ul>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown"><a id="user" href="#" class="dropdown-toggle" data-toggle="dropdown">用户 <span class="caret"></span></a>
					<ul class="dropdown-menu" role="menu">
						<li><a href="/pad/logout">退出登录</a></li>
					</ul></li>
			</ul>
		</div>
	</nav>
	<div class="container bs-docs-container">
		<ol id="breadcrumb" class="breadcrumb">
			<li class="active">首页</li>
		</ol>
		<div id="toolbar"></div>
		<table id="data-table"></table>
		<table id="student-table" class="table table-bordered">
			<tr>
				<th>学号</th>
				<th>姓名</th>
				<th>小组作业组号</th>
				<th>小组作业组互评号</th>
				<th>个人作业编号</th>
				<th>个人作业互评号</th>
				<th>邮箱</th>
				<th>操作</th>
			</tr>
		</table>
		<div id="toolbar"></div>
		<table id="data-table"></table>
	</div>
	<!-- 修改学生信息 modal -->
	<div id="updateStudentModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">修改学生信息</h4>
				</div>
				<div class="modal-body">
					<form id="updateStudent" role="form" action="/pad/course/updateStudent" method="post">
						<input type="hidden" name="courseId"/>
						<input type="hidden" name="userId"/>
						<div class="input-group">
							<span class="input-group-addon" id="ts1">学号</span>
							<input name="studentNum" type="text" placeholder="学号" class="form-control" aria-describedby="ts1">
						</div><br/>
						<div class="input-group">
							<span class="input-group-addon" id="ts2">姓名</span>
							<input name="name" type="text" placeholder="姓名" class="form-control" aria-describedby="ts2">
						</div><br/>
						<div class="input-group">
							<span class="input-group-addon" id="ts3">邮箱</span>
							<input name="email" type="text" placeholder="邮箱" class="form-control" aria-describedby="ts3">
						</div><br/>
						<div class="input-group">
							<span class="input-group-addon" id="ts4">小组作业号</span>
							<input name="groupNum" type="text" placeholder="小组作业号" class="form-control" aria-describedby="ts4">
						</div><br/>
						<div class="input-group">
							<span class="input-group-addon" id="ts5">小组作业互评号</span>
							<input name="commentGroupNum" type="text" placeholder="小组作业互评号" class="form-control" aria-describedby="ts5">
						</div><br/>
						<div class="input-group">
							<span class="input-group-addon" id="ts6">个人作业编号</span>
							<input name="singleNum" type="text" placeholder="个人作业编号" class="form-control" aria-describedby="ts6">
						</div><br/>
						<div class="input-group">
							<span class="input-group-addon" id="ts7">个人作业互评号</span>
							<input name="commentSingleNum" type="text" placeholder="个人作业互评号" class="form-control" aria-describedby="ts7">
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#updateStudent','#updateStudentModal');">修改</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 修改课程 modal -->
	<div id="updateCourseModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">修改课程</h4>
				</div>
				<div class="modal-body">
					<form id="updateCourse" role="form" action="course/createCourse" enctype="multipart/form-data" method="post">
						<input type="hidden" name="id">
						<div class="form-group">
							<input class="form-control date date-year" name="year" type="text" placeholder="年份">
						</div>
						<div class="form-group">
							<input type="text" name="courseName" class="form-control" placeholder="课程名">
						</div>
						<div class="form-group">
							<label for="importStudent">导入修改后的学生信息</label> <input type="file" name="importStudent" id="importStudent">
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#updateCourse','#updateCourseModal');">修改</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 创建作业 modal -->
	<div id="createAssignmentModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">创建作业</h4>
				</div>
				<div class="modal-body">
					<form id="createAssignment" role="form" action="assignment/createAssignment" method="post">
						<input type="hidden" name="courseId" value="'+courseId+'">
						<div class="form-group">
							<input type="text" name="assignmentName" class="form-control" placeholder="作业名称">
						</div>
						<div class="form-group">
							<select name="assignmentType" class="form-control selectpicker" placeholder="活动类型">
								<option value="">--选择作业类型--</option>
								<option value="1">个人作业</option>
								<option value="2">小组作业</option>
							</select>
						</div>
						<div class="form-group">
							<textarea name="description" class="form-control" rows="5" id="assignmentContent" placeholder="作业简介"></textarea>
						</div>
						<div class="form-group">
							<textarea name="assignmentContent" class="form-control" rows="4" id="assignmentContent" placeholder="作业内容"></textarea>
						</div>
						<div class="form-group">
							<div class="input-daterange input-group">
								<input type="text" class="form-control date-start" name="startDate" placeholder="开始日期" /> <span class="input-group-addon">至</span> <input type="text"
									class="form-control date-end" name="endDate" placeholder="结束日期" />
							</div>
						</div>
						<div class="form-group">
							<select name="replyTemplateId" class="form-control selectpicker commentTemplateSelect reply" placeholder="反馈模板选择">
								<option value="">--选择反馈模板--</option>
							</select>
						</div>
						<div class="form-group">
							<select name="mutualTemplateId" class="form-control selectpicker commentTemplateSelect mutual" placeholder="互评模板选择">
								<option value="">--选择互评模板--</option>
							</select>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#createAssignment','#createAssignmentModal');">创建</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 修改作业 modal -->
	<div id="updateAssignmentModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">修改作业</h4>
				</div>
				<div class="modal-body">
					<form id="updateAssignment" role="form" action="assignment/updateAssignment" method="post">
						<input type="hidden" name="courseId" value="'+courseId+'">
						<input type="hidden" name="id">
						<div class="form-group">
							<input type="text" name="assignmentName" class="form-control" placeholder="作业名称">
						</div>
						<div class="form-group">
							<select name="assignmentType" class="form-control selectpicker" placeholder="活动类型">
								<option value="">--选择作业类型--</option>
								<option value="1">个人作业</option>
								<option value="2">小组作业</option>
							</select>
						</div>
						<div class="form-group">
							<textarea name="description" class="form-control" rows="5" placeholder="作业简介"></textarea>
						</div>
						<div class="form-group">
							<textarea name="assignmentContent" class="form-control" rows="4" placeholder="作业内容"></textarea>
						</div>
						<div class="form-group">
							<div class="input-daterange input-group">
								<input type="text" class="form-control date-start" name="startDate" placeholder="开始日期" /> <span class="input-group-addon">至</span> <input type="text"
									class="form-control date-end" name="endDate" placeholder="结束日期" />
							</div>
						</div>
						<div class="form-group">
							<select name="replyTemplateId" class="form-control selectpicker commentTemplateSelect reply" placeholder="反馈模板选择">
								<option value="">--选择反馈模板--</option>
							</select>
						</div>
						<div class="form-group">
							<select name="mutualTemplateId" class="form-control selectpicker commentTemplateSelect mutual" placeholder="互评模板选择">
								<option value="">--选择互评模板--</option>
							</select>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#updateAssignment','#updateAssignmentModal');">修改</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 创建活动 modal -->
	<div id="createActivityModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">创建活动</h4>
				</div>
				<div class="modal-body">
					<form id="createActivity" role="form" action="activity/createActivity">
						<input type="hidden" name="assignmentId" value="'+assignmentId+'">
						<div class="form-group">
							<input type="text" name="activityName" class="form-control" placeholder="活动名称">
						</div>
						<div class="form-group">
							<input type="text" name="description" class="form-control" placeholder="活动简介">
						</div>
						<div class="form-group">
							<select name="activityType" class="form-control selectpicker" placeholder="活动类型">
								<option value="">--选择活动类型--</option>
								<option value="EDIT">编辑</option>
								<option value="COMMENT">组内互评</option>
								<option value="FEEDBACK">组间互评</option>
							</select>
						</div>
						<div class="form-group">
							<div class="input-daterange input-group">
								<input type="text" class="form-control date-start" name="startDate" placeholder="开始日期" /> <span class="input-group-addon">至</span> <input type="text"
									class="form-control date-end" name="endDate" placeholder="结束日期" />
							</div>
						</div>
						<!--<div class="form-group">
							<div class="commentTemplateSelect"></div>
						</div>-->
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#createActivity','#createActivityModal');">创建</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 修改活动 modal -->
	<div id="updateActivityModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" id="myModalLabel">修改活动</h4>
				</div>
				<div class="modal-body">
					<form id="updateActivity" role="form" action="activity/createActivity">
						<input type="hidden" name="assignmentId" value="'+assignmentId+'">
						<input type="hidden" name="id">
						<div class="form-group">
							<input type="text" name="activityName" class="form-control" placeholder="活动名称">
						</div>
						<div class="form-group">
							<input type="text" name="description" class="form-control" placeholder="活动简介">
						</div>
						<div class="form-group">
							<select name="activityType" class="form-control selectpicker" placeholder="活动类型">
								<option value="">--选择活动类型--</option>
								<option value="EDIT">编辑</option>
								<option value="COMMENT">组内互评</option>
								<option value="FEEDBACK">组间互评</option>
							</select>
						</div>
						<div class="form-group">
							<div class="input-daterange input-group">
								<input type="text" class="form-control date-start" name="startDate" placeholder="开始日期" /> <span class="input-group-addon">至</span> <input type="text"
									class="form-control date-end" name="endDate" placeholder="结束日期" />
							</div>
						</div>
						<!--<div class="form-group">
							<div class="commentTemplateSelect"></div>
						</div>-->
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-info" onclick="submitForm('#updateActivity','#updateActivityModal');">修改</button>
				</div>
			</div>
		</div>
	</div>
	<script src="./resources/js/jquery.min.js"></script>
		 <div id="cprtFooter">
	        <!-- 版权信息 -->
	 </div>	

<script type="text/javascript">
		$("#cprtFooter").load("copyrightFooter.html");
</script>
	<script src="./resources/js/jquery.form.min.js"></script>
	<script src="./resources/js/bootstrap.min.js"></script>
	<script src="./resources/js/bootstrap-table.min.js"></script>
	<script src="./resources/js/bootstrap-select.min.js"></script>
	<script src="./resources/js/bootstrap-editable.js"></script>
	<script src="./resources/js/bootstrap-table-editable.js"></script>
	<script src="./resources/js/bootstrap-datetimepicker.min.js"></script>
	<script src="./resources/js/student_manage.js"></script>
</body>
</html>
